﻿// MvcRouteUnitTester
// by Lee Dumond 
// twitter.com/LeeDumond

namespace MvcRouteUnitTester.Tests
{
   using System.Web;
   using System.Web.Routing;

   public class TestCustomConstraint : IRouteConstraint
   {
      public bool Match(HttpContextBase httpContext, Route route, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
      {
         return values["id"].ToString().StartsWith("ABC");
      }
   }
}